From: Jonas Ã…dahl Date: Fri, 16 Aug 2019 14:28:22 +0000 (+0200) Subject: shell-global: Only sync input region if X11 session X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~832^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=638b315e40c62979703bcbe2c61203c2fdb17bdf;p=gnome-shell.git shell-global: Only sync input region if X11 session We'd do an early out in the called functions eventually anyway. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/682 --- diff --git a/src/shell-global.c b/src/shell-global.c index ca43257ad..06f2be2aa 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -937,7 +937,8 @@ shell_global_begin_modal (ShellGlobal *global, return FALSE; global->has_modal = meta_plugin_begin_modal (global->plugin, options, timestamp); - sync_input_region (global); + if (!meta_is_wayland_compositor ()) + sync_input_region (global); return global->has_modal; } @@ -967,7 +968,8 @@ shell_global_end_modal (ShellGlobal *global, meta_display_focus_default_window (global->meta_display, get_current_time_maybe_roundtrip (global)); - sync_input_region (global); + if (!meta_is_wayland_compositor ()) + sync_input_region (global); } /* Code to close all file descriptors before we exec; copied from gspawn.c in GLib.